<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<h:head>
	<title>Sistema Divisão de Patrimônio</title>
	<h:outputStylesheet name="index.css" library="css" />
	<link rel="shortcut icon" href="resources/img/favicon.ico" />
</h:head>


<body>

	<h:form id="form">

		<div>
			<h:graphicImage name="img/cabecalho.png" id="cabecalho" />
		</div><br /><br /><br />
		
		<p:messages id="msg" update="display" />
		
		<div align="center" style="color: black;">
		<p:fieldset id="fieldset" style="width: 400px; height: 160px;">
		<h:graphicImage name="img/loginfuncionario.png" id="loginFuncionario" style="width: 80px; padding: 1px 20px; float: center;" />
			<br />
		
			<h5 align="center">
				Login: &nbsp;&nbsp;
				<p:inputText id="login" value="#{loginBean.funcionario.login}"
					style="font-size:12px; width: 200px" size="12" required="true"
					requiredMessage=" Campo Login não pode ser nulo">
				</p:inputText><br /><br />

			</h5>

			<h5 align="center" style="color: black;">
				Senha:&nbsp;&nbsp;
				<p:password id="senha" value="#{loginBean.funcionario.senha}"
					style="font-size:12px;  width: 200px" size="12" required="true"
					requiredMessage="Campo Senha não pode ser nulo.">
				</p:password>
			</h5>
						
			</p:fieldset><br /><br />

			<p:commandButton value="ENTRAR" action="#{loginBean.efetuaLogin}"
				ajax="false" style="font-size:11px;" />

		</div><br />

	
	
<!-- 	<h:form style="float: center; text-align: center; text-decoration: none; font-weight: bold; -->
<!-- 			font-style: italic; font-size: 12px; "> -->
		<h:commandLink value="Solicitar Cadastro de Funcionário" action="solicitacaoCadastro.xhtml?faces-redirect=true" /><br /><br />
		
		<h:commandLink value="Esquici Minha Senha" action="EsqueciMinhaSenha.xhtml" />
	</h:form>

</body>

</html>
